#ifndef PROTOCGUI_H
#define PROTOCGUI_H

#include <QWidget>
#include <qprocess.h>

namespace Ui {
class ProtocGUI;
}

class ProtocGUI : public QWidget
{
    Q_OBJECT
    
public:
    explicit ProtocGUI(QWidget *parent = 0);
    ~ProtocGUI();
    
	void dragEnterEvent(QDragEnterEvent* event);
    void dragMoveEvent(QDragMoveEvent* event);
    void dragLeaveEvent(QDragLeaveEvent* event);
	void dropEvent(QDropEvent* event);

public slots:
	
	void compile();
	void readyRead();

private:
    Ui::ProtocGUI *ui;
	QProcess* m_pProcess;
};

#endif // PROTOCGUI_H
